/**
 * 
 */
package com.cqan.utils;

import java.awt.Color;
import java.util.Random;

/**
 * @author slaton
 * 
 *         下午01:48:31
 */
public class CodeUtils {

	
	/**
	 * 获取随机颜色
	 * @return
	 */
	public static Color getRandomColor(){
		
		Color[] colors = {Color.BLUE,Color.BLACK,Color.CYAN,Color.GREEN,Color.DARK_GRAY,new Color(164,31,107),new Color(37,31,164),Color.MAGENTA};
		Random rand = new Random();
		return colors[rand.nextInt(colors.length)];
	}
}
